<style lang="less" scoped>
.panel {
  margin-bottom: 10px;
  &-title {
    margin-top: 10px;
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 0.1px solid #eaeaea;
    background: white;
    font-size: 14px;
    &__label {
      display: flex;
      align-items: center;
      .icon {
        height: 30px;
        width: 30px;
      }
    }
    &__value {
      flex: 1;
      align-items: center;
    }
  }
  &-content {
    padding-bottom: 10px;
    background: white;

    &__item {
      display: flex;
      padding: 10px 10px 0 10px;
      font-size: 12px;
      color: #aaa;
      &-label {
        padding-right: 15px;
      }
      &-value {
        flex: 1;
        word-break: break-all;
      }
    }
  }
}
</style>

<template>
  <div>
    <div v-if="items.length==0" class="info">暂无数据</div>
    <div class="panel" v-else>
      <template v-for="(item, index) in items" wx:key="unique">
        <!-- title -->
        <div class="panel-title" :key="'title'+index">
          <div class="panel-title__label"></div>
          <div class="panel-title__value" v-html="item.Title||'-'"></div>
          <div class="panel-title__right"></div>
        </div>
        <!-- content -->
        <div class="panel-content" :key="'content'+index">
          <div class="panel-content__item">
            <div class="panel-content__item-value">时间：{{item.PublishDate||'-'}}</div>
            <div class="panel-content__item-right">来源：{{item.Source||'-'}}</div>
          </div>
        </div>
      </template>
    </div>
  </div>
</template>
<script>
export default {
  props: ['items']
};
</script>
